]> dgit.raspbian.org Git - gnome-shell.git/commit
status/volume: Check the stream before accessing it
authorJordan Petridis <jpetridis@gnome.org>
Mon, 16 Feb 2026 02:06:55 +0000 (04:06 +0200)
committerMarge Bot <marge-bot@gnome.org>
Mon, 16 Feb 2026 15:12:36 +0000 (15:12 +0000)
commitf4df530fc483effdba9b1a8da712bdfa86c34ea0
treea2e7e57174da49dc8ecdeb207576e3085a227dce
parentc861454484163dae967df3325232c34af33cc071
status/volume: Check the stream before accessing it

stream-updated will also get emitted when the stream is unset, and trying
to access it then breaks.

In such case we don't need to update the css class of the indicator as it
will be hidden, and we will get another stream-updated before we show
it again anyway.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4076>
js/ui/status/volume.js